package com.hnust.service.impl;

import com.hnust.dao.testRecordDao;
import com.hnust.service.getTestRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("getTestRecordService")
public class getTestRecordServicelmpl implements getTestRecordService {
    @Autowired
    private testRecordDao testRecordDao;
    public  List getTestRecord(String testID){
   // public  questionList [] getTestRecord(String testID){
        //int testid = Integer.parseInt(testID);
        //questionList [] list = testRecordDao.getTestRecord(testID);
        List list = testRecordDao.getTestRecord(testID);    //用list集合来存储数据
        System.out.println(list);
        return list;
    }
}
